import {
  http
} from '@/utils/request.js'

export const loginApi = (data) => {
  return http.middleware({
    method: 'POST',
    url: '/auth/login',
	data
  })
}

export const getUserInfoApi = () => {
  return http.middleware({
    method: 'GET',
    url: '/customer/me',
  })
}

// 拓客-是否认证
export const getTkDetailApi = () => {
  return http.middleware({
    method: 'GET',
    url: '/tk/detail',
  })
}

// 拓客认证
export const tkVerificationApi = (data) => {
  return http.middleware({
    method: 'POST',
    url: '/tk/verification',
	data,
  })
}
